<?php 
Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl.'/css/pay/default/cart.css');
?>
<script type="text/javascript">
seajs.use('src/pay/cart', function (list) {
	
});
</script>
<table class="table table-striped table-hover table-bordered">
	<caption class="lead">购物车信息</caption>
	<tr id="tableHead">
		<td class="param_name" >
			商品预览
		</td>
		<th class="param_name">商品名称</th>
		<th class="param_name">单价</th>
		<th class="param_name">数量</th>
		<th class="param_name">总价</th>
		<th class="param_name">操作</th>
	</tr>
	<tbody id="tableBody">
	</tbody>
	<tr id="cartFooter">
		
	</tr>
</table>
<script type="text/template" id="tableFooter">
<td colspan="4">
			<a type="button" href="<?php echo $this->createUrl('/pay/default/submitOrder'); ?>"  class="pull-right btn">提交订单</a>
		</td>
		<td >
			<span id="sumTotal"></span>
		</td>
		<td >
			&nbsp;
		</td>
</script>
<script type="text/template" id="tableCartItem">
		<td><div class="param_value">
				<img class='cartProductPreview' src="<%=image%>"/>
			</div></td>
		<td><div class="param_value">
				<input type="hidden" name="itemName[]" id="itemName0" value="<%=name%>" />
				<%=name%>
			</div></td>
		<td><div class="param_value">
				<input type="hidden" name="itemAmount[]" id="itemAmount0" value="<%=price%>" />
				<%=price%>
			</div></td>
		<td><div class="param_value" >
				<button class="reductCartNum"><i class="icon-minus"></i></button>
				<input type="text" style="width:75px;" class="quanity" name="itemQuantity[]" id="itemQuantity0"
					value="<%=num%>" />
				<button class="addCartNum"><i class="icon-plus"></i></button>
			</div></td>
		<td><div class="param_value">
				<%=unit%><span class="total_amount"><%=total%></span>
			</div></td>
			<td><div class="param_value">
				<button class="btn deleteProduct">删除</button>
			</div>
		</td>
</script>